package cn.lingyangwl.agile.food.model.rqrs.goods;

import cn.lingyangwl.agile.food.model.entity.GoodsSpecValue;
import cn.lingyangwl.agile.food.model.rqrs.sku.SkuResp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * 商品
 *
 * @author shenguangyang
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "商品")
public class GoodsResp extends GoodsBase {
	private Long id;

	@ApiModelProperty(value = "购物车中该商品数量")
	private Integer buyNum = 0;

	@ApiModelProperty(value = "商品首图")
	private String image;

	@ApiModelProperty(value = "商品分类名称")
	private String categoryName;

	@ApiModelProperty(value = "删除状态, 0: 未删除；1: 已删除")
	private Boolean deleteStatus;

	@ApiModelProperty(value = "sku数据")
	private List<SkuResp> skuList;

	@ApiModelProperty(value = "spec数据")
	private List<GoodsSpecValue> specList;

	@ApiModelProperty(value = "创建时间")
	private Date createdAt;
	
	@ApiModelProperty(value = "创建者")
	private String createdBy;
	
	@ApiModelProperty(value = "更新时间")
	private Date updatedAt;
	
	@ApiModelProperty(value = "更新时间")
	private String updatedBy;
	
	@ApiModelProperty(value = "创建者用户id")
	private Long createdUid;

	@ApiModelProperty(value = "上线的门店")
	private Set<String> tenantIds = Collections.emptySet();

	@ApiModelProperty(value = "是否被添加到当前门店")
	private Boolean isAddCurrentStore;
	
}
